<?php

/**
 * \file
 * Classe `Price`.
 */

namespace pilar\SimpleFormMembers /* \cond */ ; /* \endcond */
{

/**
 * Membre de prix.
 *
 * \since 12/11/2008
 * \author Matthieu OVIEDO <matthieu.oviedo@gmail.com>
 */
class Price extends TextBox {

protected function loadDefaultParams() {
 parent::loadDefaultParams();
 
 $this->params->set(array(
  'size' => 4,
  'maxLength' => 4
 ));
}


protected function initialize() {
 parent::initialize();

 $this->value = '0.0';
}


public function guiDomNode($domDoc) {
 $domGui = parent::guiDomNode($domDoc);

 $domGui->appendChild(
  $domDoc->createTextNode('€')
 );

 return $domGui;
}


} // Class.

} // Namespace.

?>
